<template>
  <span class="float-right d-none d-lg-block">
    <span class="fw red mr10 fz12">遇到问题，联系飞哥微信：xuchengfeifei</span>
    <small class="mr-2">今日发布<span class="badge badge-primary-lighten ml-1">{{stateObject.day}}</span></small>
    <small class="mr-2">本周<span class="badge badge-primary-lighten ml-1">{{stateObject.week}}</span></small>
    <small class="mr-2">总数<span class="badge badge-primary-lighten ml-1">{{stateObject.total}}</span></small>
  </span>
</template>
<script setup>
const props = defineProps({
  channelId: {
    type: Number,
    default: 1
  }
})

const stateObject = ref({})
onMounted(async () => {
  const resp = await useLoadStateChannel(props.channelId)
  for (let i = 0; i < resp.data.length; i++) {
    var c = resp.data[i]
    stateObject.value[c.ckey] = c.mnum
  }
})
</script>